<?php
define("ROOT_PATH", dirname(__FILE__)."\../");

$conf = include_once ROOT_PATH."conf.php";
$act = isset($_GET["act"]) ? $_GET["act"] : "home";
$module = $conf["modules"];

if(!array_key_exists($act, $module)){
    die("非法请求!");
}

require_once ROOT_PATH."page/".$act.".php";